package com.chenju.invokechainservice.adapter;

import com.github.javaparser.ast.body.MethodDeclaration;
import com.github.javaparser.ast.body.Parameter;
import com.github.javaparser.ast.visitor.VoidVisitorAdapter;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;

public class MethodVisitorAdapter extends VoidVisitorAdapter<String> {

    public List<MethodDeclaration> methods;

    public MethodVisitorAdapter() {
        super();
        this.methods = new ArrayList<>();
    }

    public void visit(MethodDeclaration n) {
        this.visit(n, "");
    }

    @Override
    public void visit(MethodDeclaration n, String arg) {
        this.methods.add(n);
//        super.visit(n, arg);
    }
}
